﻿using EyFramework.ORM;

namespace EyFramework.Sys.Core
{
    public class BaseHisService : IBaseHisService
    {
        private BaseDaoHis<object> _baseDao = new BaseDaoHis<object>();

        public long GetHisMaxId(string tableName, string fieldName)
        {
            return _baseDao.GetHisMaxId(tableName, fieldName);
        }

        public string GetCurrentDate(string formatStr = "YYYY-MM-DD HH24:MI:SS")
        {
            return _baseDao.GetCurrentDate(formatStr);
        }
    }
}